package com.wanjl.spring_05_mybatis_spring.service.impl;

import com.wanjl.spring_05_mybatis_spring.entity.Tea;
import com.wanjl.spring_05_mybatis_spring.mapper.TeaMapper;
import com.wanjl.spring_05_mybatis_spring.service.TeaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title TeaServiceImpl
 * @description
 * @create 2024/11/1
 */
@Service
public class TeaServiceImpl implements TeaService {

    //@Autowired
    @Resource
    private TeaMapper teaMapper;


    @Override
    public List<Tea> selectAll() {
        return teaMapper.selectAll();
    }
}
